<div class="bjui-pageHeader">
    <div class="toolBar">
        <div class="btn-group" role="group" aria-label="操作栏">
            <a type="button" class="btn btn-success" href="${wwwroot}/admin/tasklog/add" data-toggle="navtab" data-id="form"><i class="fa fa-plus"></i>新增</a>
            <a type="button" class="btn btn-danger" href="${wwwroot}/admin/tasklog/delete?ids={#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗？" data-id="form" data-mask="true"><i class="fa fa-trash-o"></i>删除选中行</a>
        </div>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" action="${wwwroot}/admin/tasklog/list" method="post">
        <input type="hidden" name="pageSize" value="">
        <input type="hidden" name="pageCurrent" value="">
        <input type="hidden" name="orderField" value="">
        <input type="hidden" name="orderDirection" value="">
        <div class="bjui-searchBar">
			<label>修改人：</label><input type="text" id="lastModifiedName" name="lastModifiedName" value="${(taskLog.lastModifiedName)!}"  class="form-control" size="10">&nbsp;
            <#--<label>状态：</label><input type="text" id="status" name="status" value="${(taskLog.status)!}"  class="form-control" size="10">&nbsp;-->
            <label>开始时间：</label><input type="text" data-toggle="datepicker" id="lastModifiedTimeStart" name="lastModifiedTimeStart" value="${(lastModifiedTimeStart?string('yyyy-MM-dd'))!}"  class="form-control" size="15">&nbsp;
            <label>结束时间：</label><input type="text" data-toggle="datepicker" id="lastModifiedTimeEnd" name="lastModifiedTimeEnd" value="${(lastModifiedTimeEnd?string('yyyy-MM-dd'))!}"  class="form-control" size="15">&nbsp;
            <button type="submit" class="btn btn-primary" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
				<th width="50">No.</th>                
                <th data-order-direction="" data-order-field="lastModifiedName">操作人名</th>
                <th data-order-direction="" data-order-field="status">动作</th>
    			<th data-order-direction="" data-order-field="note">任务说明</th>
                <th data-order-direction="" data-order-field="isTimer" width="70">是否定时</th>
                <th data-order-direction="" data-order-field="lastModifiedTime">修改时间</th>
                <th width="100">预览文件</th>
            </tr>
        </thead>
        <tbody>
        <#list pageCtx.rows as row>
        	<tr data-id="${(row.id)!}">
				<td>${(row_index+1)!}</td>
                <td title="${(row.lastModifiedName)!}">${(row.lastModifiedName)!}</td>
                <td title="${(row.status.note)!}">${(row.status.note)!}</td>
                <td title="${(row.note)!}"><a href="/admin/tasklog/track?taskId=${(row.taskId)!}" data-width="700" data-toggle="dialog"  data-id="form"  data-title="任务日志">${(row.note)!}</a>  </td>
                <td><#if row.isTimer>是<#else>否</#if></td>
                <td title="${(row.lastModifiedTime?string('yyyy-MM-dd HH:mm:ss'))!}">${(row.lastModifiedTime?string('yyyy-MM-dd HH:mm:ss'))!}</td>
                <td><a target="_blank" href="/file/${(row.artifactId)!}">预览文件</a></td>
            </tr>
		</#list>	        	
        </tbody>
    </table>  
</div>
<@p.pagination pageCtx=pageCtx pageParam=pageParam/>